package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.ShoppingCart;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/9/29
 */
public interface ShoppingCartService extends IService<ShoppingCart> {
    List<ShoppingCart> cartListApi();
    //boolean addCartApi(ShoppingCart shoppingCart);
    ShoppingCart addCartApi(ShoppingCart shoppingCart);
    //boolean updateCartApi(Long dishId, Long setmealId);
    ShoppingCart updateCartApi(Long dishId, Long setmealId);
    boolean clearCartApi();
    boolean orderAgainApi(List<ShoppingCart> shoppingCarts);
}
